Skip to content

fix(tui): retry acts on the displayed generation, not the session file#49

Merged
mkonopelski-gd merged 2 commits into
mainfrom
fix/incorrect-session-path-for-retry
Jul 14, 2026
Merged

fix(tui): retry acts on the displayed generation, not the session file#49
mkonopelski-gd merged 2 commits into
mainfrom
fix/incorrect-session-path-for-retry

Conversation

@mkonopelski-gd

@mkonopelski-gd mkonopelski-gd commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Problem

TUI retry silently no-ops and drops to the terminal instead of resuming a failed generation.

Root cause: the retry action threw away the dashboard's active generation_id and re-derived it from specflow_session.json at self.app.root. That root is the SpecFlow checkout (resolve_repo_root), not the project the run belongs to — so when the session was opened from the Sessions list (or the run lives in another project directory), no session file is found there. cmd_retry_generation compounded it by hardcoding resolve_generation_id(None, ...), ignoring any explicit id. Retry printed "No previous generation found" and returned without calling the backend, leaving the session FAILED.

Fix

  • Thread the on-screen generation_id through do_retrycmd_retry_generation; the session file stays as the fallback (mirrors the download-outputs pattern).
  • Add --generation-id to the retry-generation subparser so args.generation_id always exists.

Tests

  • make unit-tests
  • make integration-tests
  • make skip-mode-e2e-tests

The TUI retry action discarded the dashboard's active generation_id and
re-derived it from specflow_session.json at the SpecFlow checkout root
(resolve_repo_root), where no session file exists when the run belongs to
another project or was opened from the Sessions list. cmd_retry_generation
also hardcoded resolve_generation_id(None, ...), ignoring any explicit id.
Result: retry printed "No previous generation found" and no-oped, leaving
the session FAILED.

Thread the on-screen generation_id through do_retry into cmd_retry_generation
(session file remains the fallback), matching the download-outputs pattern,
and add --generation-id to the retry-generation subparser.
@akozak-gd

Copy link
Copy Markdown
Contributor

@mkonopelski-gd Please check tests as they did not pass

@mkonopelski-gd mkonopelski-gd merged commit 658ef95 into main Jul 14, 2026
3 checks passed
@mkonopelski-gd mkonopelski-gd deleted the fix/incorrect-session-path-for-retry branch July 14, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants